package me.flyray.bsin.server.domain._gen;

import java.util.Map;
import java.util.HashMap;
import java.util.Arrays;
import java.util.List;

import java.io.Serializable;

import me.flyray.bsin.server.domain.SysTenantApp;

// tell cpd to start ignoring code - CPD-OFF
/**
 *  Systenantapp: sys_tenant_app
 */
@SuppressWarnings({"PMD"})
public class _SysTenantApp implements Serializable{
    
    /* 租户id: TENANT_ID VARCHAR */
    public static final String PROP_NAME_tenantId = "tenantId";
    public static final int PROP_ID_tenantId = 1;
    
    /* 应用id: APP_ID VARCHAR */
    public static final String PROP_NAME_appId = "appId";
    public static final int PROP_ID_appId = 2;
    
    /* 应用关系类型：0默认应用、1新增应用，2授权应用: TYPE INTEGER */
    public static final String PROP_NAME_type = "type";
    public static final int PROP_ID_type = 3;
    

    private static int _PROP_ID_BOUND = 4;

    

    public static final List<String> PK_PROP_NAMES = Arrays.asList(PROP_NAME_tenantId,PROP_NAME_appId);
    public static final int[] PK_PROP_IDS = new int[]{PROP_ID_tenantId,PROP_ID_appId};

    private static final String[] PROP_ID_TO_NAME = new String[4];
    private static final Map<String,Integer> PROP_NAME_TO_ID = new HashMap<>();
    static{
      
          PROP_ID_TO_NAME[PROP_ID_tenantId] = PROP_NAME_tenantId;
          PROP_NAME_TO_ID.put(PROP_NAME_tenantId, PROP_ID_tenantId);
      
          PROP_ID_TO_NAME[PROP_ID_appId] = PROP_NAME_appId;
          PROP_NAME_TO_ID.put(PROP_NAME_appId, PROP_ID_appId);
      
          PROP_ID_TO_NAME[PROP_ID_type] = PROP_NAME_type;
          PROP_NAME_TO_ID.put(PROP_NAME_type, PROP_ID_type);
      
    }

    
    /* 租户id: TENANT_ID */
    private java.lang.String _tenantId;
    
    /* 应用id: APP_ID */
    private java.lang.String _appId;
    
    /* 应用关系类型：0默认应用、1新增应用，2授权应用: TYPE */
    private java.lang.Integer _type;
    

    public _SysTenantApp(){
    }

    protected SysTenantApp newInstance(){
       return new SysTenantApp();
    }

    public String orm_entityName() {
      return "me.flyray.bsin.server.domain.SysTenantApp";
    }

    
    /**
     * 租户id: TENANT_ID
     */
    public java.lang.String getTenantId(){
         //onPropGet(PROP_ID_tenantId);
         return _tenantId;
    }

    /**
     * 租户id: TENANT_ID
     */
    public void setTenantId(java.lang.String value){
        this._tenantId = value;
    }
    
    /**
     * 应用id: APP_ID
     */
    public java.lang.String getAppId(){
         //onPropGet(PROP_ID_appId);
         return _appId;
    }

    /**
     * 应用id: APP_ID
     */
    public void setAppId(java.lang.String value){
        this._appId = value;
    }
    
    /**
     * 应用关系类型：0默认应用、1新增应用，2授权应用: TYPE
     */
    public java.lang.Integer getType(){
         //onPropGet(PROP_ID_type);
         return _type;
    }

    /**
     * 应用关系类型：0默认应用、1新增应用，2授权应用: TYPE
     */
    public void setType(java.lang.Integer value){
        this._type = value;
    }
    
}
// resume CPD analysis - CPD-ON
